<template>
    <div class="static-indicator">
        <div class="pulse-circle"></div>
        <span class="static-text">{{text}}</span>
    </div>
</template>

<script setup lang="ts">
defineProps({
    text: {
        type: String,
        default: '静'
    }
})
</script>

<style scoped lang="scss">
.static-indicator {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
/* 动态文字 */
.static-text {
    position: relative;
    font-size: 12px;
    font-weight: bold;
    color: var(--el-color-success);
    /* 活力红色 */
    z-index: 2;    
}

/* 脉冲光圈 */
.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--el-color-success);
    border-radius: 50%;
}
</style>